package com.px.lovepath.ui.home;

import java.util.Date;

import android.net.Uri;

public abstract class LoveMessage {

	private Uri mAvatarUri;
	protected String mMessage;
	protected final Date mDate;
	protected final Path mPath;
	
	public LoveMessage(Date date, Path path) {
		mDate = date;
		mPath = path;
	}

	public Uri getAvatarUri() {
		return mAvatarUri;
	}
	public void setAvatarUri(Uri mAvatarUri) {
		this.mAvatarUri = mAvatarUri;
	}
	public abstract String getMessage();
	public abstract String getInfo();
	public Date getDate() {
		return mDate;
	}
	public Path getPath() {
		return mPath;
	}
	
	public static int getType(LoveMessage message) {
		assert message != null;
		if (message instanceof CallRecord) {
			return 2;
		} else if (message instanceof SmsRecord) {
			return 1;
		}
		return 0;
	}
	
	public enum Path {
		TOME,
		TOIT
	}
}
